<ui:composition xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:c="http://java.sun.com/jstl/core"
		xmlns:af="http://myfaces.apache.org/trinidad"
		xmlns:afh="http://myfaces.apache.org/trinidad/html">
           <af:navigationPane hint="bar" styleClass="activityResubmissionNavBar">
               <af:commandNavigationItem id="apply-button"
                   textAndAccessKey="#{commonMsg.apply}" text="#{commonMsg.apply}"
                   action="#{activityInstanceDialog.performResubmission}"
                   partialSubmit="true">
               </af:commandNavigationItem>
               <af:commandNavigationItem id="cancel-button"
                   textAndAccessKey="#{commonMsg.cancel}" text="#{commonMsg.cancel}"
                   action="success"
                   immediate="true"
                   partialSubmit="true">
                   <af:setActionListener from="#{null}" to="#{activityInstanceDialog.resubmissionDate}" />
                   <af:setActionListener from="#{activityInstanceDialog.activityPanelPage}" 
                      to="#{portalHeader.processPortalSession.currentPage}" />
               </af:commandNavigationItem>
           </af:navigationPane>
       <af:spacer height="10px"/>
       <af:panelBox text="#{localeBundle.resubmissionTitle}" background="light" 
           styleClass="activityResubmissionPanelBox">
       
				<style type="text/css">
					.resubmission-col {vertical-align: top;}
				</style>

       		<h:panelGrid columns="2" columnClasses="resubmission-col, resubmission-col">

				<h:panelGroup>
					<af:spacer height="0.3em;" />
             		<af:outputLabel value="#{localeBundle.resubmissionLabel}" for="chooseDate"/>
				</h:panelGroup>

			<h:panelGroup>
				<af:inputDate value="#{activityInstanceDialog.resubmissionDate}">
					<f:convertDateTime type="both" />
					<af:validateDateTimeRange
						minimum="#{activityInstanceDialog.minDate}"
						messageDetailMinimum="#{localeBundle.invalidResubmissionDate}" />
				</af:inputDate>
			</h:panelGroup>

			<af:selectBooleanCheckbox text="#{localeBundle.addResubmissionNotes}"
					selected="#{activityInstanceDialog.addResubmissionNotes}"
                    styleClass="af|inputText::label" />
				<af:inputText rows="5"
					value="#{activityInstanceDialog.resubmissionNotes}"/>
       		
       		</h:panelGrid>
        </af:panelBox>
</ui:composition>
